#!/bin/bash

set -e

if [ ! -d "$HOME/.ollydbg" ] ; then
	mkdir -p "$HOME/.ollydbg/wine"
	ln -s /usr/share/windows/ollydbg/ollydbg.exe "$HOME/.ollydbg/ollydbg.exe"
	ln -s /usr/share/windows/ollydbg/dbghelp.dll "$HOME/.ollydbg/dbghelp.dll"
fi

wine "$HOME/.ollydbg/ollydbg.exe" "$@"
